package com.wanxi.chat.mongo.api.fallback;



import com.wanxi.chat.mongo.api.MongoFeignClient;
import com.wanxi.chat.result.CommonResult;
import com.wanxi.chat.vo.ChatQueryVO;
import org.springframework.stereotype.Component;

@Component
public class MongoFallBack implements MongoFeignClient {

    @Override
    public CommonResult mongoAddFeign(ChatQueryVO chatQueryVO) {
        return CommonResult.failed("添加失败");
    }

    @Override
    public CommonResult mongoUpdateFeign(ChatQueryVO chatQueryVO) {
        return CommonResult.failed("修改失败");
    }

    @Override
    public CommonResult mongoDeleteFeign(ChatQueryVO chatQueryVO) {
        return CommonResult.failed("删除失败");
    }

    @Override
    public CommonResult mongoFindFeign(ChatQueryVO chatQueryVO) {
        return CommonResult.failed("没有找到该消息记录");
    }
}
